package cn.byapps.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.byapps.dao.UserDao;
import cn.byapps.json.EasyUIJson;
import cn.byapps.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;

	public EasyUIJson getJson(int page, int size) {
		EasyUIJson ea = new EasyUIJson();
		ea.setTotal(userDao.getTotal());
		ea.setRows(userDao.getList(page, size));
		return ea;
	}

}
